package com.zzuli.yxy.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zzuli.yxy.entity.Menu;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @auther pony
 * @create 2023-03-13 16:18
 */
@Mapper
public interface MenuMapper extends BaseMapper<Menu> {
    /**
     * 根据 id 查询用户权限关键字
     * @param employeeId
     * @return
     */
    List<String> selectPermsByEmployeeId(Integer employeeId);

    /**
     * 根据 id 查询用户权限菜单所有信息
     * @param employeeId
     * @return
     */
    List<Menu> selectMenuListByEmployeeId(Integer employeeId);
}
